package myenum;

import static net.mindview.util.Print.print;
import static net.mindview.util.Print.printnb;

public enum OverriderConstantSpecific {
    NUT,BOLT,WASHER{
        @Override
        void f(){
            print("Overridden method");
        }
    };
    void f(){
        print("default behavior");
    }

    public static void main(String[] args) {
        for(OverriderConstantSpecific ocs : values()){
            printnb(ocs + ": ");
            ocs.f();
        }
    }
}
